package com.hahaliu.hahaliu.service.user;

import com.baomidou.mybatisplus.extension.service.IService;
import com.hahaliu.hahaliu.pojo.entity.Follow;
import com.hahaliu.hahaliu.pojo.vo.FollowVO;

/**
* @author Liubuzhu
* @description 针对表【follow】的数据库操作Service
* @createDate 2024-06-16 15:50:32
*/
public interface FollowService extends IService<Follow> {

	/**
	 * 获取用户关注与粉丝数
	 * @param id
	 * @return
	 */
	FollowVO getFansCount(Integer id);

	/**
	 * 判断用户是否关注
	 * @param uid
	 * @param followUid
	 * @return
	 */
	Boolean isFollow(Integer uid, Integer followUid);

	/**
	 * 关注
	 * @param uid
	 * @param followUid
	 */
	void follow(Integer uid, Integer followUid);
}
